import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
// import getVant from './plugins'
import store from './store'
import { Swipe, SwipeItem,Button,Popup,Cell  } from 'vant';
import VueLazyload from 'vue-lazyload'

// 若是没有开启Devtools工具，在开发环境中开启，在生产环境中关闭
// if (process.env.NODE_ENV == 'development') {
//   Vue.config.devtools = true;
// } else {
//   Vue.config.devtools = false;
// }

const app = createApp(App)
app.use(Swipe).use(SwipeItem).use(Button).use(Popup).use(Cell).use(store).use(router)
app.use(VueLazyload,{
  loading: require('@/common/image/default.jpg'),
  error: require('@/common/image/error.jpg')
})
app.mount('#app')